package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 团长佣金信息
 * @author XJY
 */
public class Leaderprofit implements Serializable {

	private Long id;							//ID
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long leaderId;					    //团长id
	private Double totalAmount;					//总分润金额
	private Double withdres;					//已提现金额
	private Double frozen;					    //冻结金额
	private Double balance;					    //可用余额
	private String companyCode;				    //公司编号

    public Leaderprofit(){

    }

    public Leaderprofit(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Leaderprofit(Long leaderId) {
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       this.leaderId=leaderId;
       this.totalAmount=0.00;
       this.withdres=0.00;
       this.frozen=0.00;
       this.balance=0.00;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setLeaderId(Long leaderId){
		this.leaderId=leaderId;
	}

	public Long getLeaderId(){
		return leaderId;
	}

	public void setTotalAmount(Double totalAmount){
		this.totalAmount=totalAmount;
	}

	public Double getTotalAmount(){
		return totalAmount;
	}

	public void setWithdres(Double withdres){
		this.withdres=withdres;
	}

	public Double getWithdres(){
		return withdres;
	}

	public void setFrozen(Double frozen){
		this.frozen=frozen;
	}

	public Double getFrozen(){
		return frozen;
	}

	public void setBalance(Double balance){
		this.balance=balance;
	}

	public Double getBalance(){
		return balance;
	}

	public void setCompanyCode(String companyCode){
		this.companyCode=companyCode;
	}

	public String getCompanyCode(){
		return companyCode;
	}

}
